# -*- coding: utf-8 -*-
# Auther : 风雪
# Date : 2023/12/8 11:18
# File : test.py

# data={"蓄电池": [{"标注1": {}},{"标注2": {}}]}
#
# mong_fn("id",data)

#coding=utf-8
import requests

#请求地址
targetUrl = "https://myip.top"

# 110.42.9.74:16259 lqPDDcQt rWNXle8T
# 110.42.9.74:16259 lqPDDcQt rWNXle8T
#代理服务器
proxyHost = "110.42.9.74"        #代理IP
proxyPort = "16259"      #代理端口
proxyUser = "lqPDDcQt"  #代理账户
proxyPass = "rWNXle8T"  #代理密码

# Python3

proxyMeta = f"http://{proxyUser}:{proxyPass}@{proxyHost}:{proxyPort}"

proxies = {
    "http"  : proxyMeta,
    "https"  : proxyMeta
}

resp = requests.get(targetUrl, proxies=proxies)
print("Use proxies:", proxies)
print("Respose status code: ", resp.status_code)
print("Respose content: ", resp.text)